#ifndef TTL_H
#define TTL_H

#include <QWidget>
//#include <QMediaPlayer>
//#include <QShortcut> //obsolit
#include <QSystemHotkey/qsystemhotkey.h>
#include "googletts.h"

#define LINK "http://translate.google.com/translate_tts?tl=en&q="
#define LENGTH_LIMIT 100

namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();
    void halt(void);  //--- hot key ----

signals:
    void beginHotkeys(void);
    void haltHotkeys(void);

private slots:
    void on_pushButton_1_clicked();
//    void key_press(); // obsolit
    void hotkeyPressed(int position);  //Handle hotkey SIGNAL
//    void loadImage(); // obsolit

    void on_checkBox_1_stateChanged(int arg1);

private:
    Ui::Widget *ui;
    //QShortcut *shortcut; //obsolit
    QSystemHotkey *hotkeys;
    GoogleTTS *tts;
};

#endif // TTL_H
